package com.hxkj.service;

import com.hxkj.domain.po.Navigation;
import com.hxkj.domain.po.NavigationTree;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.result.ResultMessageStruct;

import java.util.List;
import java.util.Map;

/**
 * 栏目Service
 * <p>
 * Created by chenfangzhou on 2018/6/6.
 */
public interface NavigationService {

    /**
     * 保存栏目信息
     *
     * @param navigation
     * @return
     * @throws Exception
     */
    ResultDataStruct saveNavigation(Navigation navigation) throws Exception;

    /**
     * 获取单个栏目
     *
     * @param
     * @return
     * @throws Exception
     */
    ResultDataStruct<Navigation> getNavigation(Navigation navigation) throws Exception;


    /**
     * 获取所有栏目
     *
     * @return
     * @throws Exception
     */
    ResultDataStruct<List<NavigationTree>> getNavigationList(Navigation navigation) throws Exception;


    /**
     * 修改栏目
     *
     */
    ResultMessageStruct updateNavigation(Navigation navigation) throws Exception;

    /**
     * 删除栏目
     * @param navigation
     */
    ResultMessageStruct deleteNavigation(Navigation navigation) throws Exception;

    /**
     * 更新排序id
     * @param map
     * @throws Exception
     */
    ResultMessageStruct modifyOrderIds(Map<String, Object> map)throws Exception;

}
